package com.ruoyi.hxf.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("f_message")
public class Message extends BaseEntity {

    /**
     * 摘要ID
     */
    @TableId(value = "msg_id")
    private Long msgId;


    @NotBlank(message = "消息标题不能为空")
    @Size(max = 64, message = "消息标题不能超过64个字符")
    private String msgTitle;



    private String msgContent;


    private Integer msgStatus;


    private String receiverId;

    /**
     * 是否删除(0不显示，1显示)
     */
    private String isDelete;

    /**
     * 是否删除(0不显示，1显示)
     */
    private String msgAvatar;


    private String remark;

    private Long topping;

    private Integer readStatus;

    private Integer readNumber;
}
